package com.example.administrator.appli.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

import com.example.administrator.appli.Iinteface.IMulity;

public class LocalServiceMulity extends Service {
    public LocalServiceMulity() {
    }

    ServiceBinder serviceBinder = new ServiceBinder();

    @Override
    public IBinder onBind(Intent intent) {
        return serviceBinder;
    }


    public class ServiceBinder extends Binder implements IMulity {
        @Override
        public int mulity(int a, int b) {
            return a * b+2;
        }
    }
}
